import request from '@/utils/request'

// 查询好友列表列表
export function listAttention(query) {
  return request({
    url: '/petSys/attention/list',
    method: 'get',
    params: query
  })
}

// 查询好友列表详细
export function getAttention(id) {
  return request({
    url: '/petSys/attention/' + id,
    method: 'get'
  })
}

// 新增好友列表
export function addAttention(data) {
  return request({
    url: '/petSys/attention',
    method: 'post',
    data: data
  })
}

// 修改好友列表
export function updateAttention(data) {
  return request({
    url: '/petSys/attention',
    method: 'put',
    data: data
  })
}

// 删除好友列表
export function delAttention(id) {
  return request({
    url: '/petSys/attention/' + id,
    method: 'delete'
  })
}

export function selectNotAttentionUserList(query) {
  return request({
    url: '/petSys/attention/selectNotAttentionUserList',
    method: 'get',
    params: query
  })
}

export function updateFriendApply(data) {
  return request({
    url: '/petSys/attention/updateFriendApply',
    method: 'post',
    data: data
  })
}


export function addFriendById(data) {
  return request({
    url: '/petSys/attention/addFriendById',
    method: 'post',
    data: data
  })
}



